'use strict';

angular.module('app').filter('filterByObj',[function(){
	return function(list,obj){//数组，对象
		var result=[];
		angular.forEach(list,function(item){
			var isEqual=true;
			for(var e in obj){
				if(item[e]!==obj[e]){
					isEqual=false;
				}
			}
			if (isEqual) {
				result.push(item);
			}
		});
		return result;
		console.log(result+'10');
	}
}]);